package com.ruoyi.visitor.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 微信用户信息对象 visitor_wx_user
 * 
 * @author ruoyi
 * @date 2025-04-12
 */
public class VisitorWxUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonFormat(shape  = JsonFormat.Shape.STRING)
    private Long id;

    /** unionid */
    @Excel(name = "unionid")
    private String unionid;

    /** openid */
    @Excel(name = "openid")
    private String openid;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 头像 */
    @Excel(name = "头像")
    private String avatarUrl;

    /** 微信用户类型*/
    private String wxUserType;

    private Date lastLoginTime;

    /** modify_time */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "modify_time", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** modify_by */
    @Excel(name = "modify_by")
    private String modifyBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUnionid(String unionid) 
    {
        this.unionid = unionid;
    }

    public String getUnionid() 
    {
        return unionid;
    }

    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }

    public void setPhonenumber(String phonenumber) 
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() 
    {
        return phonenumber;
    }

    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }

    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }

    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }

    public void setModifyBy(String modifyBy) 
    {
        this.modifyBy = modifyBy;
    }

    public String getModifyBy() 
    {
        return modifyBy;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getWxUserType() {
        return wxUserType;
    }

    public void setWxUserType(String wxUserType) {
        this.wxUserType = wxUserType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unionid", getUnionid())
            .append("openid", getOpenid())
            .append("phonenumber", getPhonenumber())
            .append("nickName", getNickName())
            .append("avatarUrl", getAvatarUrl())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("modifyTime", getModifyTime())
            .append("modifyBy", getModifyBy())
            .append("remark", getRemark())
            .toString();
    }
}
